package org.platform.lwc.log.config;

import lombok.AllArgsConstructor;

import org.platform.lwc.log.aspect.ApiLogAspect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 日志工具自动配置
 *
 * @author lwc
 * @date 2020/12/28
 */
@Configuration
@AllArgsConstructor
@ConditionalOnWebApplication
public class LogConfiguration {



	@Bean
	public ApiLogAspect apiLogAspect() {
		return new ApiLogAspect();
	}

}
